package com.mandao.oneplat.boot.context;

import com.mandao.oneplat.boot.mvc.model.OneModel;
import com.mandao.oneplat.boot.mvc.view.OneView;
import io.netty.handler.codec.http.HttpRequest;

/**
 * Created by sunson on 2017/3/21.
 */
public class OneContext {
    private OneRequest oneRequest = new OneRequest();
    private OneView oneView;
    private OneModel oneModel = new OneModel();
    private OneResponse oneResponse = new OneResponse();

    private HttpRequest httpRequest;

    public OneContext(HttpRequest httpRequest) {
        this.httpRequest = httpRequest;
    }

    public OneRequest getOneRequest() {
        return oneRequest;
    }

    public OneView getOneView() {
        return oneView;
    }

    public void setOneView(OneView oneView) {
        this.oneView = oneView;
    }

    public OneModel getOneModel() {
        return oneModel;
    }

    public OneResponse getOneResponse() {
        return oneResponse;
    }

    public HttpRequest getHttpRequest() {
        return httpRequest;
    }
}
